package com.kaifamiao.www.ioDemo.do0923;

import java.lang.reflect.Constructor;

public class getConstructorDemo {

    public static void main(String[] args) throws NoSuchMethodException {

        Class<Student> stu = Student.class;

        Constructor<Student> constructor = stu.getConstructor(String.class,double.class,String.class);
        System.out.println(constructor);

        Constructor<Student>[] cs = (Constructor<Student>[]) stu.getConstructors();
        for (Constructor<Student> constructor1 : cs){
            System.out.println(constructor1);
        }
    }
}
